<?php

/**
 * Production configuration
 * Usage:
 * - Online website
 * - Production DB
 * - Standard production error pages (404, 500, etc.)
 */

$dirname = dirname(__FILE__);

return array(
	// Set yiiPath (relative to Environment.php)
    'yiiPath'=>'/PortableApps/Yii/framework/yii.php',
    'yiicPath'=>'/PortableApps/Yii/framework/yiic.php',
    'yiitPath'=>'/PortableApps/Yii/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>false,
	'yiiTraceLevel'=>0,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the specific Web application configuration for this mode.
	// Supplied config elements will be merged into the main config array.
	'configWeb'=>array(
		'language'=>'id',
		// Application components
		'components'=>array(
			// Database
			'db'=>array(
				'connectionString'=>"sqlite:$dirname/../data/production.db",
			),
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					// Send errors via email to the system admin
					array(
						'class'=>'EmailLogRoute',
						'levels'=>'error, warning',
						'filter'=>array(
                            'class'=>'ext.filters.LogFilter',
                            'ignoreCategories'=>array(
                                'exception.CHttpException.*',
                            ),
                        ),
						'emails'=>'andy.julot@gmail.com',
					),
				),
			),
		),
		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
			'mode'=>'production',
			'admin'=>array(
				'name'=>'Lukman A. Fatah',
				'email'=>'rama9a@senkom.or.id',
			),
			'file'=>'C:/xampp/htdocs/files',
			'monitor'=>array('time'=>12.0),
			'recaptcha'=>array(
				'key'=>array(
					'public'=>'6Lf5cscSAAAAADxVqdOc4PSIUGe-TGk7NMasPe0Y',
					'private'=>'6Lf5cscSAAAAAGq4Yid0LKsnz3RknmGOSWE8CADZ',
				),
			),
			'notification'=>array(
				'sender'=>array(
					'name'=>'Senkom Information Center',
					'email'=>'berita@senkom.or.id',
				),
				'recipients'=>array(
					array(
						'name'=>'News',
						'email'=>'news@senkom.or.id',
					),
				),
			),
			'twitter'=>array(
				'username'=>'SenkomMP',
				'password'=>'rama9admin',
				'consumer'=>array(
					'key'=>'NHtuWA5Rwqxu07KGAQOtWg',
					'secret'=>'1rb88wTedwCkfpFkXN0FHjpRUaPTWUKWX45g7vmM2Ks',
				),
				'access'=>array(
					'token'=>array(
						'value'=>'335743263-jZ8ki1WHBB8Y8a4fFJmKG529xgcD0w7wZu1lPJjP',
						'secret'=>'21OHSEo5up6BKNlwnH92dTDbGcB3sOlpt3oMW4B4',
					),
				),
				'friends'=>array(
					130169009, // NTMC POLRI
				),
			),
			'email'=>array(
				'username'=>'berita@senkom.or.id',
				'password'=>'beritasic',
				'hostname'=>'{imap.gmail.com:993/imap/ssl}INBOX',
			),
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
		// Application components
		'components'=>array(
			// Application Log
			'log'=>'inherit',
		),
		'params'=>'inherit',
	),
);
